package f.f0.i;

import g.h;

/* compiled from: Header */
public final class c {
    public static final h d = h.e(":");
    public static final h e = h.e(":status");
    public static final h f = h.e(":method");
    public static final h g = h.e(":path");
    public static final h h = h.e(":scheme");
    public static final h i = h.e(":authority");
    public final h a;
    public final h b;
    public final int c;

    public c(String str, String str2) {
        this(h.e(str), h.e(str2));
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof c)) {
            return false;
        }
        c cVar = (c) obj;
        if (this.a.equals(cVar.a) && this.b.equals(cVar.b)) {
            return true;
        }
        return false;
    }

    public int hashCode() {
        return this.b.hashCode() + ((this.a.hashCode() + 527) * 31);
    }

    public String toString() {
        return f.f0.c.n("%s: %s", this.a.w(), this.b.w());
    }

    public c(h hVar, String str) {
        this(hVar, h.e(str));
    }

    public c(h hVar, h hVar2) {
        this.a = hVar;
        this.b = hVar2;
        this.c = hVar2.p() + (hVar.p() + 32);
    }
}
